package com.jucai.pppeiyouclient.view.popup;

import android.app.Activity;
import android.view.View;
import android.view.Window;

import com.jucai.pppeiyouclient.R;
import com.jucai.pppeiyouclient.base.BasePopup;
import com.jucai.pppeiyouclient.comm.CommonMethod;

/**
 * Created by Kuky on 2017-04-28.
 */

public class PayWayPopup extends BasePopup {
    private View popupView;

    public PayWayPopup(Activity activity, Window window, int animationStyle, View.OnClickListener onClickListener) {
        super(activity, R.layout.popup_pay_way, window, animationStyle, onClickListener);
    }

    public PayWayPopup(Activity activity, int resourceId, Window window, int animationStyle, int width, View.OnClickListener onClickListener) {
        super(activity, resourceId, window, animationStyle, width, onClickListener);
    }

    public PayWayPopup(Activity activity, int resourceId, Window window, int animationStyle, int width, int height, View.OnClickListener onClickListener) {
        super(activity, resourceId, window, animationStyle, width, height, onClickListener);
    }

    @Override
    protected View getView(Activity activity, int resource, View.OnClickListener onClickListener) {
        popupView = CommonMethod.getView(activity, resource);
        popupView.findViewById(R.id.popup_we_chat).setOnClickListener(onClickListener);
        popupView.findViewById(R.id.popup_zfb).setOnClickListener(onClickListener);
        //popupView.findViewById(R.id.popup_bank_card).setOnClickListener(onClickListener);
        return popupView;
    }
}
